import indexStyle from "./index.scss";
// get skeleton 
import {Init,XinIt} from "../skeleton/index.js";

class MakeSecondDom{
    init(){
        let newDom = document.createElement("div");
        newDom.innerHTML = "second - Html";
        newDom.className = `${indexStyle.a}`;
        newDom.addEventListener("click",(e)=>{
            const newSkeleton = new Init(e);
            // 自定义覆盖层样式
            let newStyle = {
               
                // backgroundColor: "#888"
            };
            const newMakeSkeleton = new XinIt(newDom);
            newSkeleton.getDom(e);
            newMakeSkeleton.makeStyle(newStyle);
            console.log(newSkeleton,newMakeSkeleton);
        })
        return newDom;
    }
}
export default MakeSecondDom;